package 结构型模型.适配器模式;

/**
 * 对象适配器方式(使用了组合)
 */
public class Adapter2 implements Target {
    private  Adaptee adaptee;

    public Adapter2(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void handleReq() {
        adaptee.request();
    }
}
